package com.zerui.manager.device.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.sql.Time;
import java.time.LocalDateTime;

/**
 * @Author wh
 * @create_time 2023-08-23 15:28
 */
@ApiModel("设备")
@Data
@ToString
@Accessors(chain = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "tb_device",autoResultMap = true)
public class DeviceDo {

	@ApiModelProperty("主键，无业务含义")
	@TableId(value="id",type= IdType.ASSIGN_ID)
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private Long id;

	@ApiModelProperty("设备id - 关联设备管理id")
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private Long deviceId;

	@ApiModelProperty("进出方向 0：进 1：出")
	private Integer access;

	@ApiModelProperty(value="启用状态 0：禁用，1：启用")
	private Integer enableStatus;

	@ApiModelProperty("结束时间")
	private Time endTime;

	@ApiModelProperty("开始时间")
	private Time startTime;

	@ApiModelProperty("开关 0：开 1：关")
	private Integer timedTaskStatus;

	@ApiModelProperty("门禁高级按钮执行状态")
	private String curfewStatus;

	@ApiModelProperty("创建时间")
	@JsonFormat(shape = JsonFormat.Shape.STRING,pattern ="yyyy-MM-dd HH:mm:ss",timezone ="GMT+8")
	private LocalDateTime createTime;


}
